<?php
class Contact_model extends CI_Model
{
    public $table = 'tbl_contact';
    public function __construct(){
        parent::__construct();
        $this->load->database();
    }
    function save($data)
    {
        $this->db->insert($this->table, $data);
    }
}